<form class="layui-form layui-form-pane form-search" id="formSearch" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">

<fieldset style="">
    <legend>条件筛选</legend>

        <div class="layui-form-item layui-inline" >
            <label class="layui-form-label">用户筛选</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="user_field" >
                    <option {if condition="$Think.get.user_field == 'VipLevel'"}selected{/if} value="VipLevel">VIP等级</option>
                    <option {if condition="$Think.get.user_field == 'Level'"}selected{/if} value="Level">用户等级</option>
                    <option {if condition="$Think.get.user_field == 'cannon'"}selected{/if} value="cannon">用户炮倍</option>
                    <option {if condition="$Think.get.user_field == 'UserID'"}selected{/if} value="UserID">用户ID</option>
                    <option {if condition="$Think.get.user_field == 'SpreaderID'"}selected{/if} value="SpreaderID">渠道类型</option>
                </select>
            </div>
            <label class="layui-form-label">开始</label>
            <div class="layui-input-inline">
                <input name="user_value_start" value="{$Think.get.user_value_start}" class="layui-input">
            </div>

            <label class="layui-form-label">结束</label>
            <div class="layui-input-inline">
                <input name="user_value_end" value="{$Think.get.user_value_end}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline" style="float: right;">
            <label class="layui-form-label">时间筛选</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="time_field" >
                    <option {if condition="$Think.get.time_field == 'RegisterDate'"}selected{/if} value="RegisterDate">注册时间</option>
                    <option {if condition="$Think.get.time_field == 'LastLoginDate'"}selected{/if} value="LastLoginDate">登录时间</option>
                </select>
            </div>
            <div class="layui-input-inline">
                <input name='time_value' id="haha" value="{$Think.get.time_value|default=$start_time}" class="layui-input">
            </div>
        </div>
        <script>
            window.form.render();
            $('[data-export-list]').on('click', function () {
                window.location.href = '{:url("@")}?s=store/order/index&' + $(this).parents('form').serialize() + '&action=export'
            });
        </script>
        <div class="layui-form-item layui-inline" style="float: right;">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
            <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
        </div>
</fieldset>

</form>

<script type="text/javascript">
    layui.use(['table','layer'], function() {
        var $ = layui.jquery;
        $('#xiazai').click(function(){
            var data =$('#formSearch').serialize();
            window.location.href = "{:url('Excelexport/user_down_recharge')}?"+data;
        })
    });
    //日期选择器
    laydate.render({
        elem: '#haha',
        max: 0,
        type: 'date', //默认，可不填
        range: true
    });
</script>